
inline Vector2D operator+(const Vector2D& left,const Vector2D right)
{
	return Vector2D(left.x+right.x,left.y+right.y);
}

inline Vector2D operator*(float scaler,const Vector2D right)
{
	return Vector2D(scaler*right.x,scaler*right.y);
}
inline Vector2D operator*(const Vector2D left,float scaler)
{
	return scaler * left;
		
}



inline Vector2D&  Vector2D::operator+= (const Vector2D& right)
{
	x +=  right.x;
	y +=  right.y;
	return *this;
}
inline Vector2D& Vector2D::operator-= (const Vector2D& right)
{
	x -=  right.x;
	y -=  right.y;
	return *this;
}